package com.nineclock.auth.processor;

import com.nineclock.auth.entity.IntegrationAuthenticationEntity;
import com.nineclock.system.dto.SysUserDTO;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface AuthenticationProcessor {

    /**
     * 处理集成认证方法
     */
    public SysUserDTO authenticate(IntegrationAuthenticationEntity entity);

    /**
     * 判断是否支持当前集成认证类型
     * 从 IntegrationAuthenticationEntity参数中认证类型 authType 判断当前提交认证方式是哪个
     */
    public boolean support(IntegrationAuthenticationEntity entity);
}
